package com.packet.service.impl;

import com.packet.mybatis.mapper.InformMapper;
import com.packet.pojo.Inform;
import com.packet.pojo.InformY;
import com.packet.service.InformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:InformServiceImple
 * @Author: mu
 * @Date:2024-06-25 19:25
 * @Describe:
 */
@Service
public class InformServiceImpl implements InformService {
    @Autowired
    private InformMapper informMapper;
    @Override
    public List<Inform> getAllInform(int sId) {
        return informMapper.getAllInform(sId);
    }

    @Override
    public void addInformToAll(List<InformY> informies) {
        informMapper.addInformToAll(informies);
    }
}
